package com.lin.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.blog.entity.Role;
import com.lin.blog.mapper.RoleMapper;
import com.lin.utils.Result;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lin
 * @since 2020-03-08
 */
public interface IRoleService extends IService<Role> {



    /**
     * 通过用户名查询所属的角色
     * @param userName
     * @return
     */
    public List<Role> getRoleByUserName(String userName);


    /**
     * 获取 RoleList
     * @return
     */
    public Result listRole();
}
